package cn.laixueit.pojo;

public class Student {
    private Integer id;
    private  String name;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }




    Student(){
        System.out.println("构造....");
    }

    /* Student(String name){
        System.out.println("构造....name...");
    }*/




    public static Student beanFactory(){
        System.out.println("factory.....");
        return new Student();
    }

    public Student methodFactory(){
        return new Student();
    }

    public void init(){
        System.out.println("初始化方法...默认设置");
    }

    public void destroy(){
        System.out.println("销毁方法...释放资源");
    }

    public  void show(){
        System.out.println("show....");
    }
}
